package club.calong.sanniu.util;

import java.util.Timer;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class CacheUtils {

    private static final Timer timer = new Timer();

    private static final ConcurrentMap<String, String> CACHE = new ConcurrentHashMap<>(10);

    private static final ConcurrentMap<String, String> CODES = new ConcurrentHashMap<>(10);

    private static final ConcurrentMap<String, String> WAITERS = new ConcurrentHashMap<>(10);

    private static CacheUtils cacheUtils;

    public static ConcurrentMap<String, String> getCodes () {

        return CODES;
    }

    public static ConcurrentMap<String, String> getWaiters() {

        return WAITERS;
    }

    public static Timer getTimer() {

        return timer;
    }

    public static ConcurrentMap<String, String> getCache() {

        return CACHE;
    }
}
